package com.day03_class_object.test02;

/**
 * @ClassName: StudentDemo
 * @Author: 豆豆在睡觉
 * @Create 2024/2/25-10:59
 * @Version 1.0
 */
public class StudentDemo {
    public static void main(String[] args) {
        // 创建学生对象
        Student s1 = new Student();
        s1.name = "zhaowang";
        s1.age = 12;
        // 调用方法;
        s1.study();

        Student s2 = new Student();
        s2.name = "zz";
        s2.age = 23;
        s2.study();
    }
}
